package com.zhl.study.configuration;

import com.zhl.study.service.Decoder;
import com.zhl.study.service.Encoder;
import com.zhl.study.service.TransportServer;
import com.zhl.study.service.impl.HTTPTransportServer;
import com.zhl.study.service.impl.JSONDecoder;
import com.zhl.study.service.impl.JSONEncoder;
import lombok.Data;

/**
 * @description server 配置
 * @Author: z156940l@outlook.com
 * @className RpcServerConfig
 * @Date: 2024/5/20 10:24
 */
@Data
public class RpcServerConfig {

    private Class<? extends TransportServer> transportClass = HTTPTransportServer.class;

    private Class<? extends Encoder> encoderClass = JSONEncoder.class;
    private Class<? extends Decoder> decoderClass = JSONDecoder.class;

    private int port =3002;
}
